<?php
/**
 * Created by PhpStorm.
 * User: yxs
 * Date: 2017/4/18
 * Time: 17:36
 */

namespace model;

use think\Model;

class WechatOauthLog extends Model
{
    protected $auto = ['time',"ip"];

    public function setTimeAttr(){
        return time();
    }

    public function setIpAttr(){
        return request()->ip();
    }
}